<?php
namespace Admin\Controller;
use Think\Controller;

/**
 * Created by PhpStorm.
 * User: yanshaopeng
 * Date: 2018/9/9
 * Time: 11:26
 */
class AdminBaseController extends Controller{
    protected $_user;
    public function __construct()
    {
        parent::__construct();
    }

    protected function checkLogin(){
        $this->_user = session('user');
        if(!$this->_user){
            $this->display('User/login');
        }
    }
}